//
// Created by lxinp on 2023/5/25.
//

#include "graph.h"


Graph::Graph(vector<pair<Graph::Vertex, vector<Graph::Vertex>>>& graphInfo) {
    for (auto& [u, nbrs] : graphInfo) {
        for (const auto& v : nbrs) {
            Edge* edge = new Edge(u, v, 0);
            underlying_graph[u].insert(edge);
        }
    }
}


vector<Graph::Vertex> Graph::GetAdjacentVertices(Graph::Vertex u) const {

    return {};
}
